package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 采购明细实体类
 */
@TableName("t_buyerInfo")
public class BuyerInfoBean {
    //采购明细id
    @TableId(value = "pk_buyerInfoId",type = IdType.AUTO)
    private Integer id;
    //商品对象
    @TableField(exist = false)
    private GoodsBean goodsBean;
    //商品编号
    @TableField("fk_goodsId")
    private Integer goodsId;
    //采购价格
    @TableField("b_butMoney")
    private Integer butMoney;
    //采购数量
    @TableField("b_num")
    private Integer num;
    //采购实体类id
    @TableField("fk_buyerId")
    private Integer BuyerId;
    // 采购信息实体类
    @TableField(exist = false)
    private BuyerBean BuyerBean;

    public BuyerInfoBean() {
    }

    public BuyerInfoBean(Integer goodsId, Integer butMoney, Integer num, Integer buyerId) {
        this.goodsId = goodsId;
        this.butMoney = butMoney;
        this.num = num;
        BuyerId = buyerId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public GoodsBean getGoodsBean() {
        return goodsBean;
    }

    public void setGoodsBean(GoodsBean goodsBean) {
        this.goodsBean = goodsBean;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getButMoney() {
        return butMoney;
    }

    public void setButMoney(Integer butMoney) {
        this.butMoney = butMoney;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getBuyerId() {
        return BuyerId;
    }

    public void setBuyerId(Integer buyerId) {
        BuyerId = buyerId;
    }

    public com.project.bean.BuyerBean getBuyerBean() {
        return BuyerBean;
    }

    public void setBuyerBean(com.project.bean.BuyerBean buyerBean) {
        BuyerBean = buyerBean;
    }

    @Override
    public String toString() {
        return "BuyerInfoBean{" +
                "id=" + id +
                ", goodsBean=" + goodsBean +
                ", goodsId=" + goodsId +
                ", butMoney=" + butMoney +
                ", num=" + num +
                ", BuyerId=" + BuyerId +
                ", BuyerBean=" + BuyerBean +
                "}\n";
    }
}
